package assdraw.view;

import java.awt.GridLayout;

import javax.swing.JPanel;
import javax.swing.JTextField;

import assdraw.event.DrawingEvent;
import assdraw.event.DrawingListener;

public class StatusBarPanel extends JPanel implements DrawingListener{
	
	private JTextField statusTF;
	private static final long serialVersionUID = 1L;

	public StatusBarPanel(){
		super();
		setLayout(new GridLayout(1,1));
        
		statusTF = new JTextField("Status: ");
        add(statusTF);
	}
		
	@Override
	public void update(DrawingEvent e) {
		statusTF.setText("Status: " + e.getText());
		
	}

}
